<?php
/* @var $this EmergencyLightController */
/* @var $model EmergencyLight */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'emergency-light-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'automatic_emergency_light_provided'); ?>
		<?php echo $form->textField($model,'automatic_emergency_light_provided'); ?>
		<?php echo $form->error($model,'automatic_emergency_light_provided'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'source_of_power'); ?>
		<?php echo $form->dropDownlist($model, 'source_of_power',$model->getSource_of_power() ,
		array('prompt' => 'Select a Source Of Power',)); ?>

		<?php echo $form->error($model,'source_of_power'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'other'); ?>
		<?php echo $form->textArea($model,'other',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'other'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'no_of_unit_per_floor'); ?>
		<?php echo $form->textField($model,'no_of_unit_per_floor'); ?>
		<?php echo $form->error($model,'no_of_unit_per_floor'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'located_at_stairway_landing'); ?>
		<?php echo $form->textArea($model,'located_at_stairway_landing',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'located_at_stairway_landing'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'operational'); ?>
		<?php echo $form->textField($model,'operational'); ?>
		<?php echo $form->error($model,'operational'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'exit_path_properly_illuminated'); ?>
		<?php echo $form->textField($model,'exit_path_properly_illuminated'); ?>
		<?php echo $form->error($model,'exit_path_properly_illuminated'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'tested_monthly'); ?>
		<?php echo $form->textField($model,'tested_monthly'); ?>
		<?php echo $form->error($model,'tested_monthly'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'inspection_id'); ?>
				<?php echo $form->textField($model,'inspection_id'); ?>
		<?php echo $form->error($model,'inspection_id'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->